
#include "stdafx.h"
#include "TankData.h"

CBmp24			SplashBmp;				
CBmp24			FlagBmp;				
CBmp24			GameoverBmp;			
CMultiBmp		BonusBmp;		
CMultiBmp		BoreBmp;		
CMultiBmp		BulletBmp;		
CMultiBmp		EnemyBmp;		
CMultiBmp		ExplodeBmp;		
CMultiBmp		NumBmp;		
CMultiBmp		Player1Bmp;
CMultiBmp		Player2Bmp;
CMultiBmp		ShieldBmp;
CMultiBmp		TankWall;
CMultiBmp		MiscBmp;

void LoadTankAnimDate()
{
	SplashBmp.LoadBmp(TANK_PIC_PATH "splash.bmp");
	FlagBmp.LoadBmp(TANK_PIC_PATH "flag.bmp");
	GameoverBmp.LoadBmp(TANK_PIC_PATH "gameover.bmp", RGB(0,0,0));
	BonusBmp.LoadBmp(TANK_PIC_PATH "bonus.bmp",6, 1, RGB(0,0,0));
	BoreBmp.LoadBmp(TANK_PIC_PATH "bore.bmp",4,1,RGB(0,0,0));
	BulletBmp.LoadBmp(TANK_PIC_PATH "bullet.bmp",4,1,RGB(0,0,0));
	EnemyBmp.LoadBmp(TANK_PIC_PATH "enemy.bmp",8,8,RGB(4,4,4));
	ExplodeBmp.LoadBmp(TANK_PIC_PATH "explode.bmp",8,1,RGB(0,0,0));
	NumBmp.LoadBmp(TANK_PIC_PATH "num.bmp",10,1,RGB(255,255,255));
	ShieldBmp.LoadBmp(TANK_PIC_PATH "shield.bmp",1,2,RGB(0,0,0));
	MiscBmp.LoadBmp(TANK_PIC_PATH "misc.bmp",4,1,RGB(255,255,255));
	TankWall.LoadBmp(TANK_PIC_PATH "tile.bmp",9,1,RGB(0,0,0));
	Player1Bmp.LoadBmp(TANK_PIC_PATH "player1.bmp",4,4,RGB(255,255,255));
	Player2Bmp.LoadBmp(TANK_PIC_PATH "player2.bmp",4,4,RGB(255,255,255));
}

SAnimFrame		g_BoreFrm[]=
				{
					{0,0,0,5},
					{1,0,0,6},
					{2,0,0,7},
					{3,0,0,8},
					{0xffff,0xffff,0xffff,0xffff}
				};

SAnimFrame		g_EnimyBoreFrm1[]=
				{
					{0,200,0,5},
					{1,200,0,6},
					{2,200,0,7},
					{3,200,0,8},
					{0xffff,0xffff,0xffff,0xffff}
				};
SAnimFrame		g_EnimyBoreFrm2[]=
				{
					{0,300,0,5},
					{1,300,0,6},
					{2,300,0,7},
					{3,300,0,8},
					{0xffff,0xffff,0xffff,0xffff}
				};

SAnimFrame		g_ExplodeFrm[]=
				{
					{0,0,0,5},
					{1,0,0,5},
					{2,0,0,5},
					{3,0,0,5},
					{4,0,0,5},
					{5,0,0,5},
					{6,0,0,5},
					{7,0,0,5},
					{0xffff,0xffff,0xffff,0xffff}
				};

SAnimFrame		g_BonusFrm[]=
				{
					{0,0,0,250},
					{0xffff,0xffff,0xffff,0xffff}
				};

SAnimFrame		g_GameOverFrm[]=
				{
					{0,0,0,250},
					{0xffff,0xffff,0xffff,0xffff}
				};